class RegisterType {
  final String data;
  final int errorCode;
  final String errorMsg;

  RegisterType({required this.data, required this.errorCode, required this.errorMsg});

  Map<String, dynamic> toJson() {
    return {
      'data': data,
      'errorCode': errorCode,
      'errorMsg': errorMsg
    };
  }

  factory RegisterType.fromJson(Map<String, dynamic> json) {
    return RegisterType(data: json['data'], errorCode: json['errorCode'], errorMsg: json['errorMsg']);
  }
}